#include "Heap.h"

void test()
{
	HP hp;
	HeapInit(&hp);
	int a[] = { 21,32,21,4,31,234,34 };
	int i = 0;
	for (i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HeapPush(&hp, a[i]);
	}
	HeapPop(&hp);
	HeapPrint(&hp);
}
void testS()
{
	int a[] = { 2, 3,4,5,1,13,343,53,21,42 };
	HeapSort(a, sizeof(a) / sizeof(int));
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		printf("%d ", a[i]);
	}
}

int main()
{

	testS();
	return 0;
}